package day15.atm;

import javax.swing.*;
import java.awt.*;

/**
 * 改密界面
 */
public class ChangePwdPanel extends JPanel {
    private ImageIcon saveImg = new ImageIcon("images/buttonClear.jpg");
    private ImageIcon saveImg1 = new ImageIcon("images/buttonSure.jpg");
    private Font font = new Font("黑体",Font.BOLD,30);
    private JLabel saveLabel1 = new JLabel("请输入原密码：");
    private JLabel saveLabel2 = new JLabel("请输入新密码：");
    private JLabel saveLabel3 = new JLabel("请确认新密码：");
    private JPasswordField accountField1 = new JPasswordField();
    private JPasswordField accountField2 = new JPasswordField();
    private JPasswordField accountField3 = new JPasswordField();
    private JButton saveBtn = new JButton(saveImg);
    private JButton saveBtn1 = new JButton(saveImg1);
    public ChangePwdPanel(){
        this.setLayout(null);
        saveLabel1.setBounds(300,200,230,50);
        saveLabel1.setFont(font);
        accountField1.setBounds(530,200,230,50);

        saveLabel2.setBounds(300,250,230,50);
        saveLabel2.setFont(font);
        accountField2.setBounds(530,250,230,50);

        saveLabel3.setBounds(300,310,230,50);
        saveLabel3.setFont(font);
        accountField3.setBounds(530,310,230,50);

        saveBtn.setBounds(442,370,140,50);
        saveBtn1.setBounds(442,430,140,50);
        this.add(saveLabel1);
        this.add(saveLabel2);
        this.add(saveLabel3);
        this.add(accountField1);
        this.add(accountField2);
        this.add(accountField3);
        this.add(saveBtn);
        this.add(saveBtn1);
        this.setOpaque(false);
    }
}
